import 'package:hkzf_flutter/dio/general_type.dart';
import 'package:scoped_model/scoped_model.dart';
// 搜索组件的选择城市状态管理
class CityModel extends Model {
  GeneralType? _city;
  // 获取状态管理当前城市信息
  GeneralType? get city {
    return _city;
  }
  // 设置状态管理当前城市信息
  set city(GeneralType? data) {
    _city = data;
    notifyListeners();
  }
}